<?php
namespace app\common\model;
use think\Model;

class Category extends Model
{
	public function getList(){
		$res 	= $this->order('id')->select();
		return $res;
	}

	public function getOne($id){
		$res 	= $this->find($id);
		return $res;
	}
}